package com.shycloud.mido.member.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "online_course_goods")
public class OnlineCourseGoods {
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 课时包名字
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 购买时间
     */
    @TableField(value = "buy_duration")
    private Integer buyDuration;

    /**
     * 赠送时间
     */
    @TableField(value = "give_duration")
    private Integer giveDuration;

    /**
     * 价格(单位元)
     */
    @TableField(value = "price")
    private String price;

    /**
     * 类型 0-H5（小程序内部购买），1-APP
     */
    @TableField(value = "`type`")
    private String type;

    /**
     * Ios价格
     */
    @TableField(value = "ios_price")
    private String iosPrice;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_BUY_DURATION = "buy_duration";

    public static final String COL_GIVE_DURATION = "give_duration";

    public static final String COL_PRICE = "price";

    public static final String COL_TYPE = "type";

    public static final String COL_IOS_PRICE = "ios_price";
}